package com.lo.service.impl;

import com.lo.common.JsonResult;
import com.lo.dao.OptionScoreMapper;
import com.lo.service.OptionScoreService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class OptionScoreServiceImpl implements OptionScoreService {
    @Autowired
    OptionScoreMapper optionScoreMapper;
    @Override
    public JsonResult updateRecNum(int recNum) {
        optionScoreMapper.updateRecNum(recNum);
        JsonResult result = new JsonResult(0,"修改成功",recNum);
        return result;
    }

    @Override
    public JsonResult selectRecNum() {

        return new JsonResult<>(0,"邻居数量",optionScoreMapper.GetRecNum());
    }
}
